#include <func.h>
#define n 50000000
    int ret = 0;
void* func(void *p)
{
    for(int i = 0;i<n;++i)
        ret+=1;
    printf("child done\n");
}
int main(int argc,char **argv)
{
    pthread_t pthid;
    pthread_create(&pthid,NULL,func,NULL);

    for(int i= 0;i<n;++i)
        ret+=1;

    pthread_join(pthid,NULL);
    printf("ret: %d\n",ret);
    return 0;
}

